package com.qding.park.manager.facade.core.service.common;

import com.qding.park.common.core.exceptions.business.adapter.AdapterException;
import com.qding.park.common.core.exceptions.business.manager.adapterfactory.AdapterProxyCreateFail;
import com.qding.park.common.core.exceptions.business.manager.service.ServiceCoreException;
import com.qding.park.manager.common.pojo.ParkDataResult;
import com.qding.park.manager.pojo.TbCarlock;

/**
 * @ClassName LockCarCommonFacade
 * @Description TODO(锁车单公共 service层)
 * @author LeiYang
 * @Date 2017年5月5日 下午3:28:22
 * @version 1.0.0
 */
public interface LockCarCommonFacade {

    /**
     * @Description (TODO 根据北京用户id 查询锁车单列表)
     * @param bjuserid
     * @return
     */
    ParkDataResult lockedCarList(String bjuserid);

    /**
     * @Description (创建锁车单)
     * @param tbCarlock
     * @return
     */
    ParkDataResult createLockCarOrder(TbCarlock tbCarlock)
            throws AdapterProxyCreateFail, ServiceCoreException, AdapterException;

    /**
     * @Description (根据锁车单解锁)
     * @param orderId
     * @return
     */
    ParkDataResult unLockCar(String orderId) throws AdapterProxyCreateFail, AdapterException, ServiceCoreException;
}
